/**
 * @author v.lugovksy
 * created on 16.12.2015
 */
(function() {
    'use strict';

    angular.module('BlurAdmin.theme.components')
        .directive('pageTop', pageTop);

    /** @ngInject */
    function pageTop() {
        return {
            restrict: 'E',
            templateUrl: 'app/theme/components/pageTop/pageTop.html',
            link: function($scope) {
                $scope.user_name = user.user.username;
                $scope.SignOut = function() {
                    localStorage.clear();
                    location.href = "auth.html"
                }
            }
        };
    }

})();